package cn.yunhe.services;

import cn.yunhe.dao.AdressMapper;
import cn.yunhe.entity.merchantsentity.Adress;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
/*
祝艳君
 */
public class AdressService {
    SqlSession sqlSession= SqlSessionFactoryUtil.getSqlSession();
    AdressMapper adressMapper=sqlSession.getMapper(AdressMapper.class);
    //遍历商家信息
    public List<Adress> getAllAdress(){

        return adressMapper.getAllAdress();
    }



}
